#include "stdafx.h"

DESCRIPTION_11_TEST_SUITE(RenderTargetBufferViewDescription)

BOOST_FIXTURE_TEST_CASE(Default, TestRenderTargetBufferViewDescription)
{
	BOOST_REQUIRE_EQUAL(D3D11_RTV_DIMENSION_BUFFER, m_desc.ViewDimension);
	BOOST_REQUIRE_EQUAL(DXGI_FORMAT_UNKNOWN, m_desc.Format);
	BOOST_REQUIRE_EQUAL(0, m_desc.Buffer.FirstElement);
	BOOST_REQUIRE_EQUAL(0, m_desc.Buffer.NumElements);
}

#define RENDER_TARGET_BUFFER_VIEW_DESCRIPTION_TEST_CASE(type_, name_, value_) \
	DESCRIPTION_11_SETTER_FIXTURE_TEST_CASE(name_##_, RenderTargetBufferViewDescription, type_, value_, Buffer.name_)

RENDER_TARGET_BUFFER_VIEW_DESCRIPTION_TEST_CASE(UINT, FirstElement, 2)
RENDER_TARGET_BUFFER_VIEW_DESCRIPTION_TEST_CASE(UINT, NumElements, 2)

BOOST_AUTO_TEST_SUITE_END()
